﻿namespace eStock.DataObjects
{
    public class ComponentCategory
    {
        public int Id { get; set; }
        public int ParentId { get; set; }
        public ComponentCategory Parent
        {get{if (ParentId != -1) return DatabaseObjects.Categories != null ? DatabaseObjects.Categories.GetById(ParentId) : null;
            return null;}}
        public string Title { get; set; }
        public string Description { get; set; }
    }
}
